﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JTicket.BLL;

namespace JTicket.UI
{
    public partial class JT_TicketDesinge : RoleBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btup_Click(object sender, EventArgs e)
        {
            try
            {
                this.FileUpload1.SaveAs(Server.MapPath("BarCode"));
                JTicket.Common.JsMsg.Alert("上传成功！");
            }
            catch
            {
                JTicket.Common.JsMsg.Alert("你无权访问服务器！");
            }
        }
        protected void xz_Click(object sender, EventArgs e)
        { try
            {
                JTicket.Common.FileHelp.DownLoadFiletoServer(Server.MapPath("BarCode/Barcode.fr3"));
            }
        catch
        {
            JTicket.Common.JsMsg.Alert("你无权访问服务器！");
        }
        }
    }
}